import java.util.Scanner;

public class Demo04076 {
    //在主函数中从键盘接收X,Y,Z个数，编写函数计算这3个数的立方和并返回计算结果：S=X*3+Y*3+Z*3
    public static void main(String[] args){
        getCube();
    }
    public  static  void getCube(){
        Scanner scanner=new Scanner(System.in);
        System.out.print("请输入第一个数X= ");
        int X=scanner.nextInt();
        System.out.print("请输入第二个数Y= ");
        int Y=scanner.nextInt();
        System.out.print("请输入第三个数Z= ");
        int Z=scanner.nextInt();
        System.out.println();
        System.out.println((int)(Math.pow(X,3)+Math.pow(Y,3)+Math.pow(Z,3)));

    }
}
